#include <QCoreApplication>

#include <future>
#include <iostream>
#include <string>
#include <thread>

#include "zmq.hpp"
#include "zmq_addon.hpp"
#include "outer.h"

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

//    zmq::context_t context{1};
//    zmq::socket_t publisher(context, zmq::socket_type::pub);
//    publisher.bind("tcp://*:10011");

//    for(;;){
//        std::this_thread::sleep_for(std::chrono::milliseconds(1000));
//        publisher.send(zmq::str_buffer("A"), zmq::send_flags::sndmore);
//        publisher.send(zmq::str_buffer("Message in A envelope"));
//        std::cout << "pub...A" << std::endl;
//    }
    outer mypub;

    return a.exec();
}
